﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
using Framework;

namespace QuanLyThuVien_2
{
    class ScreenNhaXuatBan: myScreen 
    {
        public List<string> listNameMenuNhaXuatBan;
        public ScreenNhaXuatBan()
        { }
         public ScreenNhaXuatBan(Size SizeScreen, Point LocationScreen)
            : base(SizeScreen, LocationScreen)
        {
            listNameMenuNhaXuatBan = new List<string>();
        }
        public override void InitializeComponent()
        {
            base.InitializeComponent();
            //listNameMenuNhaXuatBan = Util.ReadFile("ListScreenNhaXuatBan.txt");
            CreateGroupFunction();
        }
        private void CreateGroupFunction()
        {
            GroupBox gtx = Util.CreateGroupBox("gtxChucNang", "CHỨC NĂNG", new Font("Segoe UI", 20, FontStyle.Regular, GraphicsUnit.Point), new Size(700, 200), new Point(50, 50));

            Button btn = Util.CreateButton("btnThemNhaXuatBan", "", Image.FromFile(@"MenuNhaXuatBan/ThemNhaXuatBan.png"), new Size(Image.FromFile(@"MenuNhaXuatBan/ThemNhaXuatBan.png").Width, Image.FromFile(@"MenuNhaXuatBan/ThemNhaXuatBan.png").Height), new Point(90, 50));
            gtx.Controls.Add(btn);


            btn = Util.CreateButton("btnXoaXuatBan", "", Image.FromFile(@"MenuNhaXuatBan/XoaNhaXuatBan.png"), new Size(Image.FromFile(@"MenuNhaXuatBan/ThemNhaXuatBan.png").Width, Image.FromFile(@"MenuNhaXuatBan/ThemNhaXuatBan.png").Height), new Point(230, 50));
            gtx.Controls.Add(btn);


            btn = Util.CreateButton("btnSuaXuatBan", "", Image.FromFile(@"MenuNhaXuatBan/SuaNhaXuatBan.png"), new Size(Image.FromFile(@"MenuNhaXuatBan/ThemNhaXuatBan.png").Width, Image.FromFile(@"MenuNhaXuatBan/ThemNhaXuatBan.png").Height), new Point(370, 50));
            gtx.Controls.Add(btn);


            btn = Util.CreateButton("btnTraCuuNhaXuatBan", "", Image.FromFile(@"MenuNhaXuatBan/TraCuuNhaXuatBan.png"), new Size(Image.FromFile(@"MenuNhaXuatBan/ThemNhaXuatBan.png").Width, Image.FromFile(@"MenuNhaXuatBan/ThemNhaXuatBan.png").Height), new Point(510, 50));
            gtx.Controls.Add(btn);

            this.Pnl.Controls.Add(gtx);



            gtx = Util.CreateGroupBox("gtxThongKe", "THỐNG KÊ", new Font("Segoe UI", 20, FontStyle.Regular, GraphicsUnit.Point), new Size(700, 200), new Point(50, 300));

            this.Pnl.Controls.Add(gtx);
            //event            
        }
    }
}
